package testAll;

import java.io.IOException;



import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;


import cn.pasyy.service.inter.UserInfoService;




public class AAATestServiceAndDAO {
	public static void main(String[] args) throws IOException {
		ApplicationContext app = null;
        try {
            app = new ClassPathXmlApplicationContext( "spring/applicationContext.xml");
            //ac = new ClassPathXmlApplicationContext( "classpath:beans.xml");
        } catch (Exception e) {
			e.printStackTrace();
        }

        UserInfoService u=app.getBean(UserInfoService.class);
		System.out.println(u.getInfoById(7));
		
	}
}
